import java.io.File;

public class Demo7 {
    public static void main(String[] args) {
        File srcFile = new File("./abc123/def");
        File desrFile = new File("./def");
        boolean ok = srcFile.renameTo(desrFile);
        System.out.println(ok);
    }
}
